pathbar: Avoid calling gtk_widget_destroy()
authorTimm Bäder <mail@baedert.org>
Thu, 20 Feb 2020 18:36:13 +0000 (19:36 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 25 Feb 2020 09:43:15 +0000 (10:43 +0100)
gtk/gtkpathbar.c

index e9477e349c4ef9ed875cf369481cad9d2e60c5b0..ba23450eac417ace9083b7723935fbf54b072c43 100644 (file)
@@ -1360,7 +1360,7 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info,
          ButtonData *button_data;
 
          button_data = BUTTON_DATA (l->data);
-         gtk_widget_destroy (button_data->button);
+          gtk_container_remove (GTK_CONTAINER (info->path_bar), button_data->button);
        }
 
       g_list_free (info->new_buttons);